<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="./template.xhtml">

    <ui:define name="title">
        Dialog - <span class="subitem">Minimize/Maximize</span>
    </ui:define>

    <ui:define name="description">
        Dialog can be minimizable and maximizable.
    </ui:define>

    <ui:param name="documentationLink" value="/components/dialog" />

    <ui:define name="implementation">

       <p:commandButton value="Show Dialog" onclick="PF('dlg').show();" type="button" />
       
       <p:dialog header="Dialog" widgetVar="dlg" minimizable="true" maximizable="true">
           <h:outputText value="This Dialog can be Maximized an Minimized!" />
       </p:dialog>
        
    </ui:define>

</ui:composition>
